enum PlatformTypeE {
  dy = 1,
  ks = 2,
  sph = 3,
  dd = 4,
  else = 5
}
enum PlatformTypeStrE {
  dy = '抖音',
  ks = '快手',
  sph = '视频号',
  dd = '多多视频',
  else = '其他'
}
enum PayTypeE {
  ali = 2,
  wx = 1
}
enum TaskTypeE {
  online = 0, // 在线结算
  offline = 1 // 离线结算
}
enum TaskTypeStrE {
  online = '结算任务 | 需要登录', // 在线结算
  offline = '非结算任务 | 无需登录' // 离线结算
}
enum TaskStatusE {
  draft = 0,
  waiting = 1,
  processing = 2,
  confirm = 3,
  finish = 4,
}
enum TaskStatusStrE {
  draft = '草稿',
  waiting = '未开始',
  processing = '进行中',
  confirm = '待结算',
  finish = '已结束',
}
enum BTaskStatusE {
  welfare = -1,
  review = 0,
  reject = 1,
  processing = 2,
  finish = 3,
  close = 9,
}
enum BTaskStatusStrE {
  welfare = '福利',
  review = '审核中',
  reject = '驳回',
  processing = '进行中',
  finish = '已完成',
  close = '已关闭',
}
enum BTaskStatusStrColorE {
  reject = 'red',
  review = 'blue',
  processing = 'orange',
  finish = 'green',
  close = 'default',
}
enum TaskStatusColorE {
  draft = 'red',
  waiting = 'blue',
  processing = 'orange',
  confirm = 'green',
  finish = 'default',
}

enum BusinessFundTypeE {
  recharge = 0,
  addTask = 1,
  refund = 2,
  pay = 3
}
enum BusinessFundTypeStrE {
  recharge = '后台充值',
  addTask = '添加任务',
  refund = '任务退款',
  pay = '用户充值'
}
enum BusinessFundTypeColorE {
  recharge = 'orange',
  addTask = 'green',
  refund = 'red',
  pay = 'orange'
}
enum UserTaskStatusE {
  all = 0,
  receive = 1,
  publish = 2,
  success = 3,
  fail = 4,
  denied = 97,
  beyond = 98,
  delete = 99
}

enum UserTaskStatusStrE {
  all = '全部',
  receive = '已领取', // 已领取,未发布
  publish = '等待审核', // 已发布
  success = '审核通过', // 已结算
  fail = '审核拒绝',
  denied = '用户未授权', // c端用户未授权
  beyond = '任务异常', // 发布失败
  delete = '已删除'
}
enum UserTaskStatusColorE {
  all = 'gray',
  receive = 'orange', // 已领取,未发布
  publish = 'blue', // 已发布
  success = 'green', // 已结算
  fail = 'red',
  denied = 'gray',
  beyond = 'gray',
  delete = 'gray'
}

enum VideoStatusE {
  private = 2,
  audit = 4,
  public = 5,
  else = 0
}
enum VideoStatusStrE {
  private = '私密',
  audit = '审核中',
  public = '公开',
  else = '--'
}
enum VideoStatusColorE {
  private = 'red',
  audit = 'orange',
  public = 'green',
  else = 'gray'
}
type TaskStatusStrEK = keyof typeof TaskStatusStrE
type BTaskStatusStrEK = keyof typeof BTaskStatusStrE
type BTaskStatusEK = keyof typeof BTaskStatusE
type TaskStatusColorEK = keyof typeof TaskStatusColorE
type BusinessFundTypeStrEK = keyof typeof BusinessFundTypeStrE
type BusinessFundTypeColorEK = keyof typeof BusinessFundTypeColorE
type UserTaskStatusStrEK = keyof typeof UserTaskStatusStrE
type UserTaskStatusColorEK = keyof typeof UserTaskStatusColorE
type VideoStatusStrEK = keyof typeof VideoStatusStrE
type VideoStatusColorEK = keyof typeof VideoStatusColorE
type TaskTypeStrEK = keyof typeof TaskTypeStrE
export {
  PlatformTypeE,
  PlatformTypeStrE,
  TaskStatusE,
  TaskStatusStrE,
  BTaskStatusStrE,
  BTaskStatusStrColorE,
  BTaskStatusE,
  TaskStatusColorE,
  BusinessFundTypeE,
  BusinessFundTypeStrE,
  BusinessFundTypeColorE,
  UserTaskStatusE,
  UserTaskStatusStrE,
  UserTaskStatusColorE,
  VideoStatusE,
  VideoStatusStrE,
  VideoStatusColorE,
  TaskTypeE,
  TaskTypeStrE,
  PayTypeE
}

export type {
  TaskStatusStrEK,
  BTaskStatusStrEK,
  BTaskStatusEK,
  TaskStatusColorEK,
  BusinessFundTypeStrEK,
  BusinessFundTypeColorEK,
  UserTaskStatusStrEK,
  UserTaskStatusColorEK,
  VideoStatusStrEK,
  VideoStatusColorEK,
  TaskTypeStrEK
}